#!/user/local/python/bin/python
# coding=utf-8
# /***************************************************************************************************/
# /*Script Name: checkLoadTemplate.py           	 												 */								    		    */
# /*Create Date: 2020-06-02                                                                          */
# /*Script Developed By: sjc                                                                         */
# /*Script Use : checkLoad temlate                                                                   */
# /*******************************Import Modules******************************************************/

import sys
import os

'''
    检测文件内容
'''

if __name__ == '__main__':

    _outputhdfsDir = "F:\Sjc\code\myStudentCode\Python\data\\a.txt"

    with open(_outputhdfsDir, encoding='utf-8') as file_obj:
        lines = file_obj.readlines()

    for line in lines:
        if "成功" in line.rstrip():
            print("成功")
        else:
            print("失败")
        break

    fileName = "ADP2_DEMAND_MANAGE_20201001.dat.diff.log"
    fileName1 = fileName.split(".")[0] + ".result"
    fileName2 = fileName.replace("diff", "result")
    print(fileName1)
    print(fileName2)
